<%= error_messages_for :user %>
<% form_for :user do |f| %>
<p><label for="login">用户名</label><br/>
<%= f.text_field :login %></p>

<p><label for="login">姓名</label><br/>
<%= f.text_field :name %></p>

<p><label for="email">Email</label><br/>
<%= f.text_field :email %></p>

<p><label for="password">密码</label><br/>
<%= f.password_field :password %></p>

<p><label for="password_confirmation">确认密码</label><br/>
<%= f.password_field :password_confirmation %></p>

<p><%= submit_tag '注册' %></p>
<% end %>
